package com.example.badyloans.dao;

import com.example.badyloans.pojo.TBid;
import com.example.badyloans.pojo.TBorrow;
import com.example.badyloans.pojo.loginlog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TBorrowMapper {
    int deleteByPrimaryKey(String id);

    int insertSelective(TBorrow record);

    TBorrow selectByPrimaryKey(String id);

    int sum();

    List<TBorrow> selectByPrimaryKeys(String id);

    int updateByPrimaryKeySelective(TBorrow record);

    List<TBorrow> selectfenye(@Param("borrowStates")Integer[] borrowStates, @Param("currentPageNo") Integer currentPageNo,
                              @Param("pageSize") Integer pageSize,@Param("beginDate") String beginDate,@Param("endDate") String endDate);


    int count(@Param("borrowStates")Integer[] borrowStates,
             @Param("beginDate") String beginDate,@Param("endDate") String endDate);

    int update(@Param("borrowId")String borrowId, @Param("borrowState") Integer borrowState);

    List<TBorrow> selectliubiao();
}